home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d8 / zc1750d.arc / ZCOMMDOC.AC < prev    next >
Encoding:
Text File  |  1990-01-22  |  66.6 KB  |  1,771 lines

  1.  
  2.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  3.         ZCOMM User Manual                                                   61
  4.  
  5.         12.8  BIX File Transfers
  6.  
  7.         BIX (Byte Information Exchange) supports ZMODEM, and Kermit file
  8.         transfers.
  9.  
  10.         The Tymnet phone number in the bix telephone directory entry should be
  11.         changed for your calling area.  Other scripts are provided to handle
  12.         BIX mail and conferences.
  13.  
  14.         When setting up a new BIX account, give the command call bix,new to
  15.         force a login to the BIX new account program.
  16.  
  17.         Be sure to select ZMODEM downloads and Kermit (sliding windows)
  18.         uploads with the "OPTIONS" menu choice.  BIX's transfer time
  19.         predictions are about 40 per cent too pessimistic for ZMODEM
  20.         transfers.
  21.  
  22.         A number of BIX scripts are included in SCRIPTS.ZOO.
  23.  
  24.         12.9  User Exit Processing
  25.  
  26.         The onclosetx and oncloserx string parameters provide a facility to
  27.         perform user defined file related functions ("user exits") immediately
  28.         after each file is closed, while the protocol is still active.  Wild
  29.         card filename expansionss are not allowed in this context.
  30.  
  31.         The oncloserx string parameter may be used to perform user commands or
  32.         call a script once for each file received with a file transfer
  33.         protocol.
  34.  
  35.         EXAMPLE: set oncloserx @crc %rname; obey "!%mv %rname /tmp"
  36.         When each file is received, the crc command calculates and displays a
  37.         CRC for the file.
  38.  
  39.         Then the !% command calls the mv program to move the file just
  40.         received to the /tmp directory.  The "%" in the "!%" command causes
  41.         the rest of the command string to be processed for string
  42.         substitutions.
  43.  
  44.  
  45.         The onclosetx string parameter may be used to perform user commands or
  46.         call a script once for each file sent with a file transfer protocol.
  47.         Wild card file name expansions may not be used in onclosetx.
  48.  
  49.         EXAMPLE: The following causes each successfully sent file to be moved
  50.         to the /done directory.
  51.              set onclosetx
  52.         @if !d? obey "!%mv %rname /done"
  53.  
  54.  
  55.         SEE ALSO: rname, tname, drive, pwd string parameters, ?, d?  test
  56.  
  57.  
  58.         (C) 1989 Omen Tech Inc              Chapter 12 Protocol File Transfers
  59.  
  60.  
  61.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  62.         ZCOMM User Manual                                                   62
  63.  
  64.         conditions
  65.  
  66.         User exits will cause protocol timeouts if their execution takes too
  67.         long.  Since both Zcomm and the remote machine are still executing
  68.         file transfer protocols when user exits are called, user exits can not
  69.         use the serial port.
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.         (C) 1989 Omen Tech Inc                    Chapter 12 Message Transfers
  118.  
  119.  
  120.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  121.         ZCOMM User Manual                                                   63
  122.  
  123.         13.  MESSAGE TRANSFERS
  124.  
  125.         13.1  Downloading Messages
  126.  
  127.         ZCOMM is flexible capturing output from other systems.  The trick is
  128.         to make the remote send the information without too much
  129.         embellishment.
  130.  
  131.         When downloading files without a file transfer protocol, set the
  132.         timesharing system to send tabs as tab characters without expanding
  133.         them to spaces.  Turn off fill characters.  These extra characters
  134.         waste time and money and ZCOMM doesn't need them.  ZCOMM's s and S
  135.         modes can be used to strip control characters and escape sequences
  136.         from the capture download.
  137.  
  138.         EXAMPLE: t -s file
  139.  
  140.  
  141.         If the remote system responds to XOFF and XON, E mode may be enabled
  142.         to allow Error Containment(TM) to reduce the number of characters
  143.         garbled by "line hits".
  144.  
  145.         EXAMPLE: t -E7e file1 uses Error Containment to download file1 from a
  146.         system using 7 bits even parity.  Error Containment works best when
  147.         even or odd parity is available.
  148.  
  149.  
  150.         SEE ALSO: E, j, S, s modes
  151.  
  152.         13.1.1  XON/XOFF  Files of arbitrary length may be transferred if the
  153.         remote supports flow control with the ASCII XOFF and XON control
  154.         characters.  Output from most timesharing services may be captured to
  155.         a file using this method.
  156.  
  157.         To download a file with XON/XOFF flow control: t file1
  158.  
  159.  
  160.         13.1.2  DC2/DC4 (^R/^T)  Some bulletin boards support file downloads
  161.         by issuing a DC2 to open a capture buffer, sending the file, and
  162.         terminating the capture with DC4.  ZCOMM does not support this
  163.         "protocol" directly.  The review t and b commands can be used to strip
  164.         excess characters from the circular buffer before writing the file to
  165.         disk.
  166.  
  167.         This "protocol" can be implemented with Turbodial(TM) script commands:
  168.  
  169.         EXAMPLE: pat 1c "\022" "@kill; create capture.fil"
  170.              pat 2c "\024" "close"
  171.  
  172.  
  173.  
  174.  
  175.  
  176.         (C) 1989 Omen Tech Inc                    Chapter 13 Message Transfers
  177.  
  178.  
  179.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  180.         ZCOMM User Manual                                                   64
  181.  
  182.         13.1.3  Data Dump  Sometimes no flow control is available.  The fget *
  183.         command allows ZCOMM to accept a continuous stream of data at a
  184.         maximum data rate determined by the hardware and software environment.
  185.         With a hard disk, excellent results have been obtained with a 4.77 mHz
  186.         PC accepting graphics dumps at 9600 bps.
  187.  
  188.         EXAMPLE: fget file1
  189.  
  190.  
  191.         At slower speeds or with a fast computer, the term function j mode*
  192.         may be used for nonstop file capture.
  193.  
  194.         EXAMPLE: t -j file1
  195.  
  196.  
  197.         The fget command does not provide a progress display.  While this
  198.         allows the fastest possible data capture (38400 bps on a suitable
  199.         computer), sometimes there is no handy way to monitor the flow of
  200.         data.
  201.  
  202.         The term function I (super-image) mode may be used to capture a binary
  203.         file, provided CRT emulation is disabled with a display dumb command
  204.         or by enabling v mode.
  205.  
  206.         EXAMPLE: display dumb; t -Ij file1
  207.  
  208.         The fax directory entry in PHONES2.T gives another example of how
  209.         ZCOMM's data capture modes may be used to capture binary data.
  210.  
  211.         13.2  Uploading Messages
  212.  
  213.         It is often possible to upload files using the f command with one or
  214.         more modes (such as w or p, possibly in combination with t).
  215.  
  216.         Message uploads are more reliable if you keyboard enab flow before
  217.         connecting through Telenet.  If using Tymnet, type ^R^X just before
  218.         the host computer name to enable flow control with XOFF and XON.
  219.         Check with your network's documentation for further details or updates
  220.         to this information.
  221.  
  222.         It often helps to use "half duplex" ( h mode) with the computer echo
  223.         disabled when uploading files to the computer.  This saves the
  224.         computer from wasting precious time echoing characters.
  225.  
  226.         Another tactic is to avoid uncorrected message transfers during peak
  227.         hours.  Telephone usage peaks during midday with a resulting increase
  228.         in noise induced line hits.  Timesharing computers and communications
  229.         networks are more likely to drop characters due to buffer overloading
  230.         during high traffic periods as well.
  231.  
  232.  
  233.  
  234.  
  235.         (C) 1989 Omen Tech Inc                    Chapter 13 Message Transfers
  236.  
  237.  
  238.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  239.         ZCOMM User Manual                                                   65
  240.  
  241.         13.2.1  Paced  Some systems accept characters only at a certain rate,
  242.         a slow speed for each character and possibly a pause at the end of
  243.         each line.  Depending on the particular system, data transfer may have
  244.         to pause briefly at the end of the line,[1] or wait for a particular
  245.         character to signify readiness to accept the next line.  There may be
  246.         an additional delay after that[2] before the remote is able to accept
  247.         more data.
  248.  
  249.         EXAMPLE: f -p file1 uploads file1 with a wait for the linefeed echo at
  250.         the end of each transmitted line.
  251.  
  252.  
  253.         EXAMPLE: pg63; f -p file1 Sets the prompt character to decimal 63
  254.         ("?") and sends the file with a wait for "?" after each transmitted
  255.         line.
  256.  
  257.         As with the fpute command, the remote system must be commanded to open
  258.         and close the file.
  259.  
  260.         13.2.2  Throttle  Another method of slowing message uploads is the
  261.         throttle, activated by t mode.  Throttle artificially slows Zcomm's
  262.         character transmission to allow more time for the receiving system to
  263.         digest each character. The speed of transmission with t mode is
  264.         controlled by the t numeric parameter.
  265.  
  266.         EXAMPLE: f -t secret.msg
  267.  
  268.         Really slow systems may require both throttle and pacing to send data
  269.         efficiently without loss.
  270.  
  271.         EXAMPLE: f -tp turkey.slo
  272.  
  273.  
  274.         13.2.3  Uploading to IBM Mainframes  Text files can be uploaded to IBM
  275.         mainframes using the P (upper case) mode.  When the P mode is
  276.         activated, ZCOMM will wait for an XON (^Q) after sending each line.
  277.         In this special mode, ZCOMM will not time out waiting for the XON, no
  278.         matter how long it takes for the IBM front end to send it.  If, for
  279.         some reason, the front end fails to send the XON, (or if it is garbled
  280.         in transmission), Ctrl-Q may be keyboarded.
  281.  
  282.         EXAMPLE: f -P file1
  283.  
  284.  
  285.  
  286.         __________
  287.  
  288.          1. Controlled by the p numeric parameter
  289.  
  290.          2. Controlled by the q numeric parameter
  291.  
  292.  
  293.  
  294.         (C) 1989 Omen Tech Inc                    Chapter 13 Message Transfers
  295.  
  296.  
  297.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  298.         ZCOMM User Manual                                                   66
  299.  
  300.         SEE ALSO: P mode, Kermit protocol
  301.  
  302.         13.2.4  Uploading Messages to Bulletin Boards  The greatest file
  303.         transfer challenge is to upload a file to a bulletin board message
  304.         system running on a tiny microcomputer.  Bulletin board message
  305.         systems have a rich variety of operating sequences and timing
  306.         dependencies matched only by the proliferation of incompatible
  307.         dialects of Basic and Pascal.
  308.  
  309.         Message upload from files to bulletin boards reduces connect time and
  310.         $welling of the Phone Bill.  Unattended message transfer saves the
  311.         user's time, especially if the board is difficult to access.
  312.  
  313.         The t, p and w modes and the g, p, t, and q numeric parameters allow
  314.         disk files to be uploaded to such systems.
  315.  
  316.         The basic program cbbsck.bas may be used (perhaps with modifications)
  317.         to check that a message file does not violate the restrictions of the
  318.         message system being uploaded to.  A C version is also available.
  319.  
  320.         EXAMPLE: f -pt file1
  321.  
  322.  
  323.         13.2.5  Uploading to CompuServe SIGS  A file may be uploaded to a
  324.         CompuServe SIG (Special Interest Group) editor with p mode and the g
  325.         numeric parameter set to colon.  When the file has been transferred,
  326.         hit ENTER to send a blank line to terminate message entry.
  327.  
  328.         EXAMPLE: set eolstr "\r."; pp1000; pg58; f -p FILE Is useful for
  329.         uploading a prepared message to Compuserve's bulletin boards.  This
  330.         setting for eolstr inserts a carriage return and period after each
  331.         line to prevent the CompuServe software from reformatting the message.
  332.  
  333.  
  334.         EXAMPLE: pp1000, pg58, and f -p FILE transmits FILE waiting for the
  335.         prompt character ":" before sending each line after the first.
  336.  
  337.  
  338.         An alternative is to set the SIG "FIL" option, which calls the EDIT
  339.         editor.  The cisupl script file referenced by phones2.t uses the SIG
  340.         "FIL" editor option.
  341.  
  342.         Compuserve nodes often drop characters when files are uploaded at full
  343.         speed in full duplex.  This can be avoided by using h mode (local
  344.         echo) and turning off Compuserve's echo.
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.         (C) 1989 Omen Tech Inc                    Chapter 13 Message Transfers
  354.  
  355.  
  356.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  357.         ZCOMM User Manual                                                   67
  358.  
  359.         13.3  Fpute: Echoplex Uploads
  360.  
  361.         Text files can often be uploaded reasonably efficiently using the
  362.         fpute command.* Fpute waits for an echo to each character sent to the
  363.         remote.  Fpute provides modest throughput without loss of data for
  364.         systems with terminal ports designed for keyboard data entry.  The
  365.         maximum speed with fpute is limited to about 1/3 the normal character
  366.         rate by echo delays.  There is no error correction with fpute, but
  367.         character by character handshaking prevents lost data caused by buffer
  368.         overflow.  If possible, TABS should be set to echo as TAB characters
  369.         and not as spaces.  Before the fpute command is given, the remote
  370.         system must be instructed to enter data from the "terminal" to a file.
  371.         After the file has been sent, the remote system must be instructed to
  372.         close the file.
  373.  
  374.         EXAMPLE: fpute file1
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.         (C) 1989 Omen Tech Inc                         Chapter 13 Flow Control
  413.  
  414.  
  415.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  416.         ZCOMM User Manual                                                   68
  417.  
  418.         14.  FLOW CONTROL
  419.  
  420.         All of us must sometimes tell people to "slow down" lest they overload
  421.         us with information faster than we can write it down.  "Wait!" is a
  422.         Flow Control Signal for the English language.
  423.  
  424.         When buffered modems, timesharing systems, networks, or computers of
  425.         differing speeds are involved, a machine readable "Wait!" signal is
  426.         required.
  427.  
  428.         Flow control is sometimes necessary to display long messages without
  429.         skipping over the good parts.  If you see pieces of text missing from
  430.         messages but don't see the usual funny characters caused by line
  431.         noise, ypu have a flow control problem.
  432.  
  433.         File transfers that use long blocks or streaming protocols may not
  434.         work well unless slower parts of the system regulate the speed of
  435.         transmission to prevent loss of data.  With ZMODEM, SuperKermit, and
  436.         other streaming protocols, inexplicable retransmissions of data
  437.         blocks, often at regular intervals, indicate flow control failure.
  438.  
  439.         If you wish to keep things simple, the sending computer should not
  440.         operate at a higher interface speed than the slowest link in the
  441.         network.  Otherwise precautions must be taken to prevent data loss
  442.         with interactive operations and unnecessary retransmissions with
  443.         streaming file transfer protcols.
  444.  
  445.         ZCOMM, ZCOMM, and DSZ default to software flow control with XON and
  446.         XOFF characters.[1] When used with modems that require hardware flow
  447.         control, the handshake command (q.v.) should be used to specify which
  448.         hardware lines are to be used for flow control.
  449.  
  450.         Non transparent software flow control is incompatible with Emacs
  451.         editors, XMODEM and YMODEM transfers.  XMODEM and YMODEM require
  452.         complete transparency to all 256 8 bit codes.  An XMODEM transfer that
  453.         always fails at the same block results from non transparent flow
  454.         control.  When XMODEM-1k and YMODEM-1k are used, the network must
  455.         assert flow control, or handle bursts of 1040 characters without data
  456.         loss.  When X.25 or hardware CTS is unavailable, flow control that
  457.         does not "eat" any characters may be used with XMODEM and YMODEM.
  458.         When buffers fill up, an XOFF should be emitted.  An XON should be
  459.         sent when the buffer has emptied.  Otherwise, the network should
  460.         neither generate nor eat XON or XOFF characters.
  461.  
  462.  
  463.         __________
  464.  
  465.          1. The PCDOS flavor enables "handshake both" when selecting a port
  466.             with an active Clear To Send (CTS) signal that was previously
  467.             initialized to a speed greater than 2400 bps
  468.  
  469.  
  470.  
  471.         (C) 1989 Omen Tech Inc                         Chapter 14 Flow Control
  472.  
  473.  
  474.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  475.         ZCOMM User Manual                                                   69
  476.  
  477.         On Telenet, this is obtained by setting CCIT X3 5:1 and 12:1 in the
  478.         PADs (Packet Assembler Dissassembler) at both ends of the network.
  479.         Packets should be forwarded when the packet is a full 128 bytes, or
  480.         after a moderate delay (3:0,4:10).  Set parameter 5 to 1 at both ends
  481.         AFTER one is connected to the remote modem.  (Sorry, these commands
  482.         must be given each time you connect to a modem in the far city!)
  483.              <ENTER>@<ENTER>
  484.              set 5:1<ENTER>
  485.              rst? 5:1<ENTER>
  486.              cont<ENTER>
  487.         ZMODEM and Kermit protect all 4 XOFF and XON characters, commonly used
  488.         network control characters and trigger strings.  ZMODEM and Kermit are
  489.         compatible with many networks that do not support XMODEM family
  490.         protocols, including some that claim network compatibility.  For PADs
  491.         that do not accept "rst?", use:
  492.              <ENTER>@<ENTER>
  493.              set 4:2,5:1,12:1<ENTER>
  494.              cont<ENTER>
  495.         For best Telenet download throughput, parameter 64 (advance ACK)
  496.         should be set to 7.  The parameter 0 is a dummy argument that
  497.         distinguishes Telenet parameters from CCIT parameters.
  498.              <ENTER>@<ENTER>
  499.              set 0:0,64:7<ENTER>
  500.              cont<ENTER>
  501.         Sometimes Telenet flow control stops data transmission when the
  502.         network buffers are not yet full.  If you often see "STOPPED" flashing
  503.         in the status line (DOS versions), or if you see the modem send data
  504.         light pause in a ZMODEM or SuperKermit file send, poor flow control
  505.         may be the culprit.  Such slowdowns are typical when a network is
  506.         overloaded.  If this condition persists, the network should take steps
  507.         to reduce the congestion.  Turning OFF network flow control and
  508.         activating ZMODEM's or SuperKermit's protocol flow control may
  509.         increase throughput under these conditions.
  510.  
  511.         Instead of or in addition to XON/XOFF flow control, the sending
  512.         program's ZMODEM w numeric parameter can restrict the window size to a
  513.         value that does not overload the network.  A zmodem pw2048 command
  514.         restricts the window size (maximum number of bytes in transit) to
  515.         2048.  This causes the sz command to trigger the receiver's
  516.         acknowledgement every 512 bytes (one fourth the value of the ZMODEM w
  517.         numeric parameter).  The sender monitors these responses and suspends
  518.         transmission when necessary to restrict the window to the specified
  519.         size.  Until a network dependent lower limit is reached, lower window
  520.         sizes improve the speed of error recovery at the expense of slight
  521.         increases in protocol overhead.  When the window size becomes less
  522.         than the number of characters sent within the network's transit time,
  523.         throughput falls off rapidly.  Frequent protocol acknowledgements slow
  524.         down high speed psuedo full duplex modems (US Robotics HST, Telebit
  525.         TrailBlazer) and should be avoided.
  526.  
  527.         Some modems and networks can be configured to flush (discard the
  528.  
  529.  
  530.         (C) 1989 Omen Tech Inc                         Chapter 14 Flow Control
  531.  
  532.  
  533.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  534.         ZCOMM User Manual                                                   70
  535.  
  536.         contents of) their buffers when a break signal is received.  If this
  537.         is possible, error recovery with ZMODEM transfers may be speeded up by
  538.         setting the ZMODEM b parameter to 1, which sends a break whenever the
  539.         ZMODEM sending program gets a retransmission request.
  540.                      Network and Flow Control (FC) Compatibility
  541.  
  542.         ______________________________________________________________________
  543.         |    Network     | Interactive | XMODEM | WXMODEM | S-KERMIT | ZMODEM |
  544.         |________________|_____________|________|_________|__________|________|
  545.         |No Network      | YES         | YES    | YES     | YES      | YES    |
  546.         |8 bit, no FC    | NO          | YES    | YES     | YES(1)   | YES(1) |
  547.         |Transparent FC  | YES         | YES    | YES     | YES      | YES    |
  548.         |Non Transparent | YES         | NO     | NO      | YES      | YES    |
  549.         |7 bit           | YES         | NO     | NO      | YES      | NO     |
  550.         |________________|_____________|________|_________|__________|________|
  551.  
  552.         (1) Window size must be restricted to avoid buffer overrun if the
  553.         network cannot transfer data at full speed.
  554.  
  555.         14.1  Got ZRPOS Errors
  556.  
  557.         Got ZRPOS indicates the receiving program has detected a transmission
  558.         error and has requested retransmission.  In other words, ZMODEM is
  559.         doing its job of detecting and correcting missing and garbled data.
  560.         If this happens more often than observed line errors would indicate is
  561.         reasonable, there may be a flow control problem in one of four areas:
  562.  
  563.           + Between the sending program and its modem.  If using an interface
  564.             speed higher than the transmission speed, or modem to modem error
  565.             correction (MNP, LAPB, PEP, etc.), check that the modem and the
  566.             sending program are configured for the same flow control methods.
  567.             Omen Technology's software is faster than most other programs, and
  568.             may expose flow control problems not seen with slower software.
  569.  
  570.           + Between the sending modem and the network.  Correcting this
  571.             requires "handshake both" to allow the sending program to honor
  572.             both hardware (CTS) flow control from the modem and software flow
  573.             control (XON/XOFF) from the network.
  574.  
  575.           + Between parts of the network.
  576.  
  577.           + Between the receiving modem and the receiving program.  This can
  578.             happen at high transmission speeds when the receiver has specified
  579.             a large I/O buffer size with the B numeric parameter.
  580.  
  581.             Excessive interrupt latency from extended memory ramdisks or disk
  582.             caches, and poorly written hard disk drivers also wreak havoc on
  583.             streaming protocols but do not affect start-stop protocols
  584.             (XMODEM, etc.).  Problems with extended memory disk caches may
  585.             cause errors at regular intervals; check the receiver's error
  586.             messages.
  587.  
  588.  
  589.         (C) 1989 Omen Tech Inc                         Chapter 14 Flow Control
  590.  
  591.  
  592.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  593.         ZCOMM User Manual                                                   71
  594.  
  595.             To work around these problems, give the "handshake slow" command
  596.             to the receiver.
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.         (C) 1989 Omen Tech Inc                       Chapter 14 Running ZCOMM
  649.  
  650.  
  651.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  652.         ZCOMM User Manual                                                   72
  653.  
  654.         15.  RUNNING ZCOMM
  655.  
  656.         Before running ZCOMM, the keyboard Caps Lock should be turned off.
  657.         ZCOMM commands and most arguments must be entered in lower case.
  658.  
  659.  
  660.         15.1  Running ZCOMM from DOS
  661.  
  662.         ZCOMM is called from DOS as ZCOMM [A] [DPORT=n] [command ...]
  663.  
  664.         The following special commands may be given from the command line
  665.         only.
  666.  
  667.         A       PcAnywhere host mode must be disabled to allow another program
  668.                 to access the serial port in order to prevent port contention
  669.                 and lockup.  The A command may be given to disable pcAnywhere
  670.                 host mode for the duration of the program.  The A command is
  671.                 only recognized when it is the first command on the command
  672.                 line.
  673.  
  674.                 EXAMPLE: ZCOMM A DPORT=2 remote
  675.  
  676.  
  677.         COMSPEC ZCOMM uses the DOS COMSPEC environment variable to load
  678.                 COMMAND.COM or similar program to parse and execute DOS
  679.                 gateways (shell escapes).
  680.  
  681.         DPORT=n is an optional override to the default comm port.  If another
  682.                 program is using the default comm port, ZCOMM may be told to
  683.                 use another port to prevent interference.
  684.  
  685.                 SEE ALSO: DPORT environment variable
  686.  
  687.         Command may be any desired combination of ZCOMM commands.  Command
  688.         line arguments to ZCOMM must be in lower case excpet as noted.
  689.  
  690.         EXAMPLE: C>ZCOMM call cissig invokes ZCOMM and executes the commands
  691.         in the "cissig" telephone directory entry.
  692.  
  693.  
  694.         EXAMPLE: C>ZCOMM DPORT=2 call othersys
  695.         Selects COM2 before initializing the serial port
  696.  
  697.  
  698.  
  699.         15.1.1  DOS Environment Variables  ZCOMM searches the DOS Environment
  700.         for the following variables:
  701.  
  702.         CBSIZE overrides the default allocation for the circular buffer.** If
  703.               memory is limited, the DOS command SET CBSIZE=3000 will leave
  704.               more memory for DOS Gateway or other programs.  On medium model
  705.  
  706.  
  707.         (C) 1989 Omen Tech Inc                       Chapter 15 Running ZCOMM
  708.  
  709.  
  710.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  711.         ZCOMM User Manual                                                   73
  712.  
  713.               DOS flavors, CBSIZE may be set as high as 65500.
  714.  
  715.         DIRRX, DIRSX, DIRCX, DIRFX Contain optional receive (DIRRX), send
  716.               (DIRSX), capture (DIRCX), and file (DIRFX) directory presets.
  717.               When ZCOMM starts, these environment variables preset the dirrx,
  718.               dirsx, dircx, and dirfx string variables respectively.
  719.  
  720.         DIRSIZE controls the number of directory items that may be sorted with
  721.               each wildcard.  It should be set to 23 * times the desired
  722.               number of entries (default = 200).  If more directory entries
  723.               are encountered, they are processed without sorting.
  724.  
  725.               EXAMPLE: C>set DIRSIZE=8000
  726.  
  727.  
  728.         DPORT overrides the default modem port (COM1) initially accessed by
  729.               ZCOMM.
  730.  
  731.               EXAMPLE: C>set DPORT=2
  732.  
  733.  
  734.         EGA   Stting this to MONO causes ZCOMM to use video mode 7 for 80x25
  735.               column text instead of the default video mode 3.  This is needed
  736.               when using some EGA cards with an Monochrome MDA compatialbe
  737.               monitor.
  738.  
  739.               EXAMPLE: C>set EGA=MONO
  740.  
  741.  
  742.         HOTPORT Suppresses the "Warning: Old dport=" message (q.v.) seen when
  743.               Zcomm is called from certain operating systems or programs.
  744.  
  745.               EXAMPLE: C>set HOTPORT=1
  746.  
  747.  
  748.               SEE ALSO: port, portx commands
  749.  
  750.         MODEM Describes the type of modem used by the mm224 script.  See
  751.               Chapter 7 for details.
  752.  
  753.               EXAMPLE: C>set MODEM=MM224E
  754.  
  755.  
  756.         PATH  must include the directories containing ZCOMM and the help
  757.               processor YHP.
  758.  
  759.         PHONES overrides the default pathname used to fetch ZCOMM's telephone
  760.               directory.  Forward slashes should be used to indicate
  761.               directories.
  762.  
  763.               EXAMPLE: C>set PHONES=c:/PHODIR.t
  764.  
  765.  
  766.         (C) 1989 Omen Tech Inc                       Chapter 15 Running ZCOMM
  767.  
  768.  
  769.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  770.         ZCOMM User Manual                                                   74
  771.  
  772.         YAMQUIET Inhibits the display and locks the keyboard, preventing ZCOMM
  773.               from writing on the screen. * This is useful when calling ZCOMM
  774.               from another program.
  775.  
  776.               EXAMPLE: C>set YAMQUIET=257 Performs the equivalent of an
  777.               initial kbdlock 257 command.
  778.  
  779.  
  780.               SEE ALSO: kbdlock command
  781.  
  782.         ZONE  sets the z numeric parameter to the number of minutes the
  783.               current local time lags GMT time.
  784.  
  785.               EXAMPLE: C>set ZONE=420
  786.  
  787.  
  788.               SEE ALSO: z numeric parameter
  789.  
  790.         Before running the X.PC* version of Pro-YAM, you must run the Tymnet
  791.         X.PC driver to make it resident by calling the driver from DOS.  The
  792.         driver announces itself and returns control to DOS.  The Tymnet X.PC
  793.         driver uses approximately 40kb memory.
  794.  
  795.         EXAMPLE: xpcmain
  796.  
  797.  
  798.  
  799.         15.1.2  Help Program Environment Variables  The flash-up help
  800.         processor program YHP examines the environmnet for the NORMATTR,
  801.         REVATTR, and UNDLATTR variables.  These set help screen parameters for
  802.         normal, reverse video, and underline attributes corresponding to the
  803.         n,r, and u numeric paramters.
  804.  
  805.         EXAMPLE: C>set NORMATTR=3
  806.  
  807.  
  808.  
  809.         15.2  Dialing out from Unix
  810.  
  811.         ZCOMM is called from Unix as [DPORT=S] yam [command ...]
  812.         DPORT=S is an optional override to the initial default serial line.
  813.  
  814.         If another program is using the line, ZCOMM complains that the port is
  815.         busy and will refuse to open it.
  816.  
  817.         Command may be any desired combination of ZCOMM commands.
  818.  
  819.         EXAMPLE: yam call cissig invokes ZCOMM and executes the commands in
  820.         the "cissig" telephone directory entry.
  821.  
  822.  
  823.  
  824.  
  825.         (C) 1989 Omen Tech Inc                       Chapter 15 Running ZCOMM
  826.  
  827.  
  828.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  829.         ZCOMM User Manual                                                   75
  830.  
  831.         EXAMPLE: DPORT=tty77 ZCOMM call othersys
  832.         Selects /dev/tty77 before executing the othersys telephone directory
  833.         entry.
  834.  
  835.  
  836.         If ZCOMM is run in the background, it will exit if it reached the main
  837.         command prompt.
  838.  
  839.         EXAMPLE: yam call cissig&
  840.  
  841.  
  842.         As a form of shorthand, ZCOMM may be invoked as call if that is the
  843.         command to be executed.
  844.  
  845.         EXAMPLE: call cissig
  846.  
  847.  
  848.  
  849.         15.2.1  X Windows  When run under the X Windows xterm(1) interface
  850.         program (indicated by the Unix TERM environment variable), ZCOMM
  851.         understands xterm's keyboard mappings for function and ALT keys.
  852.  
  853.  
  854.         15.2.2  UNIX/XENIX Environment Variables  Unix/Xenix ZCOMM flavors
  855.         search the Environment for the following variables:
  856.  
  857.         CBSIZE overrides the default allocation for the circular buffer.  On
  858.               32 bit systems, the maximum CBSIZE is limited only by the
  859.               operating system's process size limit.
  860.  
  861.               EXAMPLE: CBSIZE=300000; export CBSIZE
  862.  
  863.  
  864.         DIRRX, DIRSX, DIRCX, DIRFX Perform the same function as described for
  865.               the DOS flavor above.  (Since Unix does not use colon (:) as a
  866.               device specifier, Unix flavors do not treat colon(s) in
  867.               pathnames in any special way.)
  868.  
  869.         DPORT overrides the default modem port initially accessed by ZCOMM.
  870.  
  871.               EXAMPLE: DPORT=tty12; export DPORT
  872.  
  873.  
  874.         HZ    Indicates the number of kernel "clock ticks" per second.  This
  875.               calibrates terminal function timeouts, protocol timeouts, and
  876.               the sleep command.  The HZ environment variable must be set if
  877.               the value used by your system is not 50 clock ticks per second.
  878.  
  879.         MODEM Describes the type of modem used by the mm224 script.  See
  880.               Chapter 7 for details.
  881.  
  882.  
  883.  
  884.         (C) 1989 Omen Tech Inc                       Chapter 15 Running ZCOMM
  885.  
  886.  
  887.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  888.         ZCOMM User Manual                                                   76
  889.  
  890.               EXAMPLE: MODEM=MM224E; export MODEM
  891.  
  892.  
  893.         PAGER points to a pager program suitable for viewing files a
  894.               screenfull at a time, such as pg(1), more(1) or less(1).
  895.  
  896.         PATH  must include the directories containing yam and the help
  897.               processor yhp.
  898.  
  899.         PHONES overrides the default pathname used to fetch ZCOMM's telephone
  900.               directory.
  901.  
  902.               EXAMPLE: PHONES=/usr/lib/local/localphone.t; export PHONES
  903.  
  904.  
  905.         SHELL ZCOMM uses this environment variable to select the appropriate
  906.               program for its shell escapes.
  907.  
  908.         TERM  If the TERM environment variable contains xterm, xterms or
  909.               anything else beginning with xterm, ZCOMM assumes it is
  910.               operating as a subprocess to the Xwindows xterm(1) program,
  911.               enabling a term function status line.  The LINES and COLUMNS
  912.               environment variables preset the # and $ numeric parameters
  913.               respectively.  This assumption may be overidden by setting the X
  914.               numeric parameter.
  915.  
  916.               If the TERM environment parameter contains the string 401
  917.               indicating emulation of a Tektronix 4010 series storage tube
  918.               terminal, status line updates are inhibited when Tek graphics is
  919.               active.
  920.  
  921.               If the TERM environment parameter cegins with "wy" (as in
  922.               "wy60") ZCOMM will use and recognize Wyse escape sequences.
  923.  
  924.         UUCPLOCK If UUCPLOCK contains "/usr/spool/locks/LCK.." ZCOMM uses
  925.               "Honey Danber" uucp port arbitration conventions.
  926.  
  927.  
  928.         15.3  Dialing in to Unix
  929.  
  930.         Unix flavors may be used for dial-in applications to transfer files
  931.         and commands with programs logged in to terminal ports.  The commands
  932.         rz, sz, zcommand, and zcommandi perform the same functions as the
  933.         corresponding ZCOMM commands.  They may be given directly to the shell
  934.         or executed from a shell script or Makefile.
  935.  
  936.         EXAMPLE: sz -Yn *.c *.h
  937.  
  938.  
  939.         The Makefile fragment below commands a DOS ZCOMM logged into a serial
  940.         port to clear its dirrx string parameter, change to its root
  941.  
  942.  
  943.         (C) 1989 Omen Tech Inc                       Chapter 15 Running ZCOMM
  944.  
  945.  
  946.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  947.         ZCOMM User Manual                                                   77
  948.  
  949.         directory, and then sends a new version of the executable to the DOS
  950.         machine.
  951.  
  952.         EXAMPLE: cpsz:/tmp/yam.exe
  953.                         @zcommand 'set dirrx ""'
  954.                         @zcommand "c:;cd /"
  955.                         @sz -y /tmp/yam.exe
  956.  
  957.  
  958.         More general command sequences or other protocols such as Kermit may
  959.         be accessed with the xyam command.
  960.  
  961.         EXAMPLE: xyam kermit sb *.c *.h
  962.  
  963.  
  964.         EXAMPLE: xyam z pl256 sz -Yn *.c *.h
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.         (C) 1989 Omen Tech Inc                         Chapter 15 Special Keys
  1003.  
  1004.  
  1005.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1006.         ZCOMM User Manual                                                   78
  1007.  
  1008.         16.  SPECIAL KEYS
  1009.  
  1010.         Ctrl-Break clears any typeahead, unlocks the keyboard, and stops
  1011.         whatever function[1] ZCOMM is doing in a reasonably orderly manner.[2]
  1012.         Ctrl-Break cancels kbdlock.  It is not so abrupt as the NUKE key.  The
  1013.         B test condition tests whether Ctrl-Break has been struck since the
  1014.         last purgek command.
  1015.  
  1016.         Keyboarding ALT-N will NUKE (abort) the current command and return to
  1017.         ZCOMM's command prompt.[3] If one or more scripts are active, the
  1018.         current line number (counting from the first line in the script file)
  1019.         for each level of script is displayed.* NUKE will terminate any
  1020.         script.  NUKE closes any transmit file, but not a receive capture
  1021.         file.  (A receive capture file may be closed with the "close"
  1022.         command.) NUKE does not disconnect the modem by dropping DTR.[4]
  1023.  
  1024.         Keyboarding ALT-Z appends the contents of the display screen to a DOS
  1025.         file.  The pathname is contained in the string parameter picture which
  1026.         may be changed with the set command.  The exact contents of the screen
  1027.         memory are written to the file, with each screen character followed by
  1028.         its attribute.  A separate program, unpic is used to convert the
  1029.         screen dump to a normal file that may be printed or displayed.
  1030.  
  1031.  
  1032.         16.1  Special Keys during Protocol Transfers
  1033.  
  1034.         Certain keys perform special functions when keyboarded during protocol
  1035.         file transfers (XMODEM, Kermit, etc.).
  1036.  
  1037.         F1  Keyboarding F1 causes a protocol timeout and forces a retry.
  1038.  
  1039.         ALT-A Displays Kermit file transfer status.
  1040.  
  1041.         ALT-B Cancels the current Kermit or ZMODEM batch transfer.
  1042.  
  1043.  
  1044.  
  1045.  
  1046.         __________
  1047.  
  1048.          1. Not necessarily the calling function or script
  1049.  
  1050.          2. In the term function, Ctrl-Break sends a break to the remote
  1051.             unless it has been redefined with a set command.
  1052.  
  1053.          3. Use of this term, popularized in the J.F.K. administration, does
  1054.             not imply endorsement of preemptive nuclear attacks on innocent
  1055.             populations.
  1056.  
  1057.          4. When in host operation waiting for a call, NUKE drops DTR.
  1058.  
  1059.  
  1060.  
  1061.         (C) 1989 Omen Tech Inc                         Chapter 16 Special Keys
  1062.  
  1063.  
  1064.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1065.         ZCOMM User Manual                                                   79
  1066.  
  1067.         ALT-C Cancels the ZMODEM or Kermit session.
  1068.  
  1069.         ALT-F Skips the current ZMODEM or Kermit file transfer.
  1070.  
  1071.         ALT-Q Keyboarding Alt-Q during a protocol file transfer toggles a flag
  1072.             that causes ZCOMM to disconnect when the transfer is completed.
  1073.             This is most useful when downloading a long file.  As soon as the
  1074.             file is transferred, ZCOMM will execute the string parameter
  1075.             quitcmd (if set) and then disconnect the modem.  If keyboarded
  1076.             during a Host Operation file transfer, ZCOMM will exit Host
  1077.             Operation at the conclusion of the transfer.  The state of the
  1078.             quit flag is displayed each time ALT-Q is keyboarded.
  1079.  
  1080.         ALT-S Keyboarding Alt-S displays status information on the console
  1081.             screen only (even if in Host Operation).  The pattern number of
  1082.             the last successful search (-1 if no match), the active search
  1083.             patterns (if any), and the line numbers of the active scripts (if
  1084.             any) are displayed to aid script debugging.
  1085.  
  1086.         ALT-V Keyboarding ALT-V will toggle the view option affecting the rb,
  1087.             rc, rz, sb, sc, sx, and sz commands, and data transfers using the
  1088.             Compuserve B protocol.
  1089.  
  1090.         ASCII Keyboarding a normal ASCII character (in the range of 00 to 7F)
  1091.             will send that character to the modem.  This may be used for
  1092.             protocol testing, or to terminate a modem's autodial handshake
  1093.             without terminating ZCOMM's call retry count.
  1094.  
  1095.         Ctrl-X All ZMODEM and many YMODEM and XMODEM protocol programs
  1096.             recognize a dozen successive Ctrl-X characters as a session abort
  1097.             command.  If the remote computer appears to be "stuck" in a YMODEM
  1098.             or ZMODEM transfer, keyboard ten Ctrl-X characters to abort the
  1099.             protocol transfer.
  1100.  
  1101.         During a protocol transfer, normal keys are sent to the modem when
  1102.         Zcomm is waiting for or receiving a packet.  This may be used to
  1103.         reissue a file transfer command to the other computer if it becomes
  1104.         apparent the original command was not accepted.
  1105.  
  1106.         Other uses for this pass thru capability include protocol testing.
  1107.  
  1108.         16.2  Local Editing Keys
  1109.  
  1110.         Emacs style character editing reduces the number of keystrokes needed
  1111.         to enter and edit commands and strings.  Normally, the cursor is at
  1112.         the end of the line of text being keyboarded.  Printing characters
  1113.         insert themselves at the cursor location.  The <ENTER> key enters the
  1114.         entire line of text.
  1115.  
  1116.         Editing keys are:
  1117.  
  1118.  
  1119.  
  1120.         (C) 1989 Omen Tech Inc                   Chapter 16 Local Editing Keys
  1121.  
  1122.  
  1123.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1124.         ZCOMM User Manual                                                   80
  1125.  
  1126.         Left, Ctrl-B moves the cursor to the left
  1127.  
  1128.         Right, Ctrl-F moves the cursor to the right
  1129.  
  1130.         Ctrl-Left cursor WORD left
  1131.  
  1132.         Ctrl-Right cursor WORD right
  1133.  
  1134.         Ctrl-A cursor to beginning of line
  1135.  
  1136.         Ctrl-E cursor to end of line
  1137.  
  1138.         Del, Ctrl-D delete character at cursor
  1139.  
  1140.         Backspace delete character to left of cursor
  1141.  
  1142.         Ctrl-W delete word to left of cursor
  1143.  
  1144.         Ctrl-K delete to end of line
  1145.  
  1146.         Ctrl-R refresh (redisplay) the line
  1147.  
  1148.         Ctrl-X delete entire line
  1149.  
  1150.         Down, Ctrl-N next history line
  1151.  
  1152.         Up, Ctrl-P previous history line
  1153.  
  1154.         Ctrl-U Argument Count (not available in term function)
  1155.  
  1156.         An initial Ctrl-U sets an argument count of 4.  Successive Ctrl-U
  1157.         characters multiply the argument count by 4.  A decimal number may be
  1158.         entered after Ctrl-U, and this number becomes the argument count.
  1159.  
  1160.         EXAMPLE: ^U^U Left moves the cursor 16 left
  1161.  
  1162.  
  1163.         EXAMPLE: ^U5X inserts 5 "X" characters
  1164.  
  1165.  
  1166.         EXAMPLE: ^U5^U?  inserts 20 "?" characters.
  1167.  
  1168.         Unix/Xenix flavors do not support Emacs style editing in the term
  1169.         function.
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.         (C) 1989 Omen Tech Inc                        Chapter 16 Main Commands
  1180.  
  1181.  
  1182.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1183.         ZCOMM User Manual                                                   81
  1184.  
  1185.         17.  MAIN COMMANDS
  1186.  
  1187.         17.1  Main Commands
  1188.  
  1189.         All commands and arguments must be entered in lower case except where
  1190.         stated.
  1191.  
  1192.         You may shorten some commands by typing just the first portion that is
  1193.         shown in caps.  For example, the "break" command may be entered as
  1194.         "br".  Whether or not you abbreviate the command, it must be entered
  1195.         in lower case.
  1196.  
  1197.         User defined Soft Keys are executed from the command prompt iff they
  1198.         do not conflict with the permanent definitions described below.
  1199.  
  1200.         Except where stated, multiple commands can be written on one line
  1201.         separated by ; (semicolon).  Commands that take a constant number of
  1202.         arguments do not need a semicolon to delimit the end of the command.
  1203.         If in doubt, use a semicolon to separate multiple commands.[1]
  1204.  
  1205.         @ The at sign may be used to indicate a telephone number starting with
  1206.           the Touch-Tone(TM) A B C D * or # codes or a character escape.  If
  1207.           the phone number contains spaces, it must be enclosed in double
  1208.           quotes.  The leading @ is not sent to the modem.
  1209.  
  1210.           EXAMPLE: @#*-123-4567 Dials #*-123-4567.
  1211.  
  1212.  
  1213.         %l-234-567-8901 (%l:letter l) For normal long distance dialing, the
  1214.           string parameter l (letter l) defaults to "1" (digit 1).  To use an
  1215.           alternative long distance service, set the l string parameter with a
  1216.           modem command to dial the local access number, wait for the second
  1217.           dial tone, and transmit the account number.
  1218.  
  1219.           SEE ALSO: "setsavenet" telephone directory entry
  1220.  
  1221.           A string of alternate phone numbers may be specified with the "+"
  1222.           construction shown below.
  1223.  
  1224.         234-5678 A number given as a command invokes the dial script to
  1225.           attempt a connection with the specified number.  Iff the modem is
  1226.           currently connected to a remote modem, and the B numeric parameter
  1227.           is non zero, ZCOMM pulses Data Terminal Ready, terminating the
  1228.           connection.  ZCOMM character escapes may be used within the number
  1229.  
  1230.  
  1231.         __________
  1232.  
  1233.          1. A space or two after each semicolon makes scripts easier for
  1234.             humans to read.
  1235.  
  1236.  
  1237.  
  1238.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1239.  
  1240.  
  1241.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1242.         ZCOMM User Manual                                                   82
  1243.  
  1244.           string to represent special characters.
  1245.  
  1246.           EXAMPLE: 234-5678
  1247.  
  1248.  
  1249.           When carrier is detected, ZCOMM executes the mconnect string (if
  1250.           set) and proceeds to the next command
  1251.  
  1252.           One or several alternate phone numbers may be specified by appending
  1253.           the previous number with +234-5678 for as many alternate numbers as
  1254.           are desired.[2] When a connection is made, undialed alternates are
  1255.           forgotten.  Alternate phone numbers need not support the same
  1256.           speeds.  A redial count given to the call command repeats the
  1257.           sequence of alternate numbers.
  1258.  
  1259.           EXAMPLE: cis             speed 2400 239-6124/mnp_s+239-
  1260.           6126/mnp_s+232-1032/300
  1261.           This script line attempts a MNP (with software slow control) call to
  1262.           the first two numbers, then a 300 bps call to the third number if
  1263.           neither of the first two connected.
  1264.  
  1265.  
  1266.           Iff no connection is made, script processing at the current level is
  1267.           terminated.
  1268.  
  1269.           A number of modifiers are available depending on the type of modem
  1270.           and the choice of dialing script used.  These are described in
  1271.           Chapter 7.
  1272.  
  1273.  
  1274.           SEE ALSO: nolog command, calllog string parameter, mcommand string
  1275.           parameter
  1276.  
  1277.         a: Change the default disk to a:.  ZCOMM then prints the free storage
  1278.           remaining on the selected disk.  The specified disk must be included
  1279.           in the string parameter disks.
  1280.  
  1281.         abort Aborts any command or script in progress.  Closes all script
  1282.           files that may be open.  Abort returns to the command prompt.
  1283.  
  1284.           SEE ALSO: quit command
  1285.  
  1286.         accept[[l]1] stringvar prompt (letter l, digit 1) Scripts often need
  1287.           to prompt the user for file names and menu choices.
  1288.  
  1289.  
  1290.  
  1291.         __________
  1292.  
  1293.          2. When using the mm224 dialing script.
  1294.  
  1295.  
  1296.  
  1297.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1298.  
  1299.  
  1300.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1301.         ZCOMM User Manual                                                   83
  1302.  
  1303.           Accept displays Prompt[3] to the user.  ZCOMM then reads keyboard
  1304.           input into the specified string variable.  Backspace and Ctrl-U
  1305.           perform editing functions.  Characters are accepted from the user
  1306.           until <ENTER> is typed.  If the H numeric parameter is non zero, an
  1307.           empty string is returned if <ENTER> is not typed within the time
  1308.           limit set by that parameter.  Acceptl translates the user's response
  1309.           to lower case.  Acceptl1 returns a 1 character string in lower case
  1310.           after the single character is keyboarded.
  1311.  
  1312.           Prompt is processed for string substitution and character escapes.
  1313.           If the result begins with an ESC character, ZCOMM does not
  1314.           reposition the cursor before accepting the string.  In writing
  1315.           scripts, it may be useful to save the current screen location with
  1316.           an escape sequence, then restore it with an escape sequence encoded
  1317.           in the prompt string.
  1318.  
  1319.           EXAMPLE: accept s1 File: Displays the prompt File: and reads the
  1320.           keyboarded response to string parameter s1.
  1321.  
  1322.  
  1323.           EXAMPLE: acceptl1 s0 "Enter Menu Choice" Reads a single character
  1324.           from the user, translates it to lower case, and assigns it to s0.
  1325.  
  1326.  
  1327.           EXAMPLE: accept s0 "\E[20;60H\E[KFile Name: " Places the cursor at
  1328.           line 20 column 60, clears the rest of the CRT line, displays the
  1329.           prompt, and accepts input.
  1330.  
  1331.  
  1332.           EXAMPLE: accept s6 " Your \E[1mFirst\E[0m name please " Uses
  1333.           boldface video to highlight First as it appears in the prompt.
  1334.  
  1335.  
  1336.           EXAMPLE: accept s2 "File "; rc %s2 Prompts the user for a file name,
  1337.           then receives that file with XMODEM/CRC protocol.
  1338.  
  1339.  
  1340.           EXAMPLE: accept xpassword "\E[mMaster Password: \E[8m"; lput "\E[m"
  1341.           Uses invisible video (ESC [ 8 m) to allow a password to be entered
  1342.           without visible echo.  The ESC [ m sequences reset the display to
  1343.           normal (visible).
  1344.  
  1345.  
  1346.           SEE ALSO: obey command, scripts
  1347.  
  1348.  
  1349.  
  1350.         __________
  1351.  
  1352.          3. Prompt must be enclosed in quotes if it contains spaces.
  1353.  
  1354.  
  1355.  
  1356.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1357.  
  1358.  
  1359.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1360.         ZCOMM User Manual                                                   84
  1361.  
  1362.         ap file1 file2* (Append) Appends the contents of file1 to file2.  If
  1363.           file2 does not exist, it is created.  Wildcards are not allowed.
  1364.           The ap command closes any files that have been opened by the create,
  1365.           f, open, t or > commands.  File1 and file2 are processed for string
  1366.           parameter substitution.
  1367.  
  1368.         apd file1 file2* (Append-Delete) Appends the contents of file1 to
  1369.           file2, then deletes file1.  If file2 does not exist, it is created.
  1370.           If an error is detected writing file2, file1 is not deleted.
  1371.           Wildcards are not allowed.  The apd command closes any files that
  1372.           have been opened by the create, f, open, t or > commands.  File1 and
  1373.           file2 are processed for string parameter substitution.
  1374.  
  1375.           EXAMPLE: apd %item Z%item.tmp
  1376.  
  1377.  
  1378.         bdump outfile Dumps the contents of the modem interrupt input buffer
  1379.           to outfile.  This command is useful for debugging as outfile will
  1380.           contain the last characters received from the remote regardless of
  1381.           what ZCOMM commands have been executed.  The most recently received
  1382.           data appears at the end of outfile.  This command "tells it as it
  1383.           is", writing all 8 bits of each character to outfile.  If less than
  1384.           1400 characters have been received from the remote, some of outfile
  1385.           will consist of nulls or garbage.  The bdump command is often used
  1386.           as a post mortem diagnostic dump after a failed script or file
  1387.           transfer.  This command is not available on Unix, OS/2, and X.PC
  1388.           flavors of ZCOMM.
  1389.  
  1390.         bg Indicates ZCOMM is running in the background with no user at the
  1391.           keyboard.
  1392.  
  1393.           SEE ALSO: fg command, df test condition
  1394.  
  1395.         BReak Sends a 200 millisecond break signal.
  1396.           N.B.: Some modems do not correctly pass the break signal to the
  1397.           remote.
  1398.  
  1399.           SEE ALSO: Ctrl-Break key, break string parameter, zmodem B numeric
  1400.           parameter
  1401.  
  1402.         BROwse pathspec Browse through the files specified in pathspec.  If
  1403.           pathspec is empty, all files are presented.  For each matched
  1404.           pathname, the filename, date, and length of the file are displayed.
  1405.           The status line displays some of the commands which may be applied
  1406.           to each file.  Chapter 15.4 describes the browse subcommands, which
  1407.           provide extensive capabilities for individually selected files.
  1408.  
  1409.         bye Terminate the connection in progress by sending a long space and
  1410.           then dropping DTR (Data Terminal Ready).[4] After a pause, DTR is
  1411.  
  1412.  
  1413.  
  1414.  
  1415.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1416.  
  1417.  
  1418.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1419.         ZCOMM User Manual                                                   85
  1420.  
  1421.           reasserted to allow the modem to originate or answer another
  1422.           call.[5]
  1423.  
  1424.           SEE ALSO: o, off commands
  1425.  
  1426.         call [-N] [name][.path][,modifier] Prepare ZCOMM for a new task and
  1427.           invoke an entry in the Phone Directory.
  1428.  
  1429.           The 7, A, a, b, C, c, E, e, g, H, h, i, j, n, o, P, p, q, r, S, s,
  1430.           t, u, v, w, X, x, Z, and z modes are reset.  The d mode is set.  The
  1431.           e, f, g, k, m, p, q, t, w, Kermit 8, zmodem C, e, l, L, p, t, T, w,
  1432.           and W parameters are reset to their default values.  The search
  1433.           patterns are erased.  Permanent string parameters set with the set
  1434.           _svar command are set to empty.
  1435.  
  1436.           If path has been specified, it is searched for a line beginning with
  1437.           name.  Otherwise, ZCOMM searches the telephone directory.  An
  1438.           optional modifier (string with a leading comma), if specified, is
  1439.           not used in the directory search.
  1440.  
  1441.           If the search is successful, the entire directory entry name is
  1442.           copied to the remote string parameter.  The complete argument
  1443.           entered on the command line is stored in the args string parameter
  1444.           visible to the called script.  If the script has a READ ONLY
  1445.           attribute, ZCOMM is unrestricted during execution of the script.
  1446.           ZCOMM then executes the commands on the rest of the line (if any),
  1447.           and on succeeding lines beginning with a space or tab.  If the v
  1448.           numeric parameter is greater than zero, each command from the file
  1449.           is displayed on the screen before it is executed.
  1450.  
  1451.           It is not necessary to type the entire name as it appears in the
  1452.           telephone directory, as ZCOMM will find the first entry that name is
  1453.           a prefix of.  Iff name is empty, execution begins with the first
  1454.           line of path.
  1455.  
  1456.           EXAMPLE: call cis1200
  1457.                           call cis1
  1458.                           call cis.C:/newscript
  1459.  
  1460.  
  1461.           EXAMPLE: call genie,upl Invokes the genie telephone directory entry
  1462.           with the modifier ,upl available to the called script.
  1463.  
  1464.  
  1465.         ______________________________________________________________________
  1466.  
  1467.          4. The modem must be configured to use Data Terminal Ready (DTR).
  1468.  
  1469.          5. Most dialing scripts include an initial bye command to make sure
  1470.             any previous call is disconnected.
  1471.  
  1472.  
  1473.  
  1474.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1475.  
  1476.  
  1477.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1478.         ZCOMM User Manual                                                   86
  1479.  
  1480.           The call command is not limited to making connections.  For example,
  1481.           "call host" in the distribution PHODIR.t file conditions a Hayes
  1482.           compatible modem to answer incoming calls silently, set parameters,
  1483.           and activates ZCOMM's host operation.
  1484.  
  1485.           Most directory entries include a telephone number to dial.  If ZCOMM
  1486.           is used with an autodial modem, the number of retries N (default
  1487.           none) may be specified.
  1488.  
  1489.           EXAMPLE: call -40 cbbs-r Attempts 40 retries before giving up.
  1490.  
  1491.           The interval between retries is set by the i numeric parameter.
  1492.  
  1493.           EXAMPLE: pi4 Sets the interval between retries to 4 seconds.
  1494.  
  1495.           Words To the Wise: Abuse of the retry feature by continually calling
  1496.           busy numbers may incur the wrath of the Telephone Company.
  1497.           Especially with Message Unit Accounting, Big Brother may be watching
  1498.           your telecommunications habits.  Some long distance services (MCI,
  1499.           Sprint, AT&T, etc.) charge for unsuccessful calls, especially if the
  1500.           phone is allowed to ring (or ring busy) for more than a few seconds.
  1501.  
  1502.           Consult your telephone company about legal limits to the number and
  1503.           frequency of retries.
  1504.  
  1505.           Since some computer services will disconnect within a short time if
  1506.           no login is attempted, you should start communicating as soon as the
  1507.           modems are connected.  ZCOMM sounds the bell after making the
  1508.           connection if retries have been specified.
  1509.  
  1510.           The source, gosub and call commands may be nested with up to six
  1511.           command/phones file descriptors open at once.[6] A label may be the
  1512.           target of a call command provided the trailing colon is included in
  1513.           name.
  1514.  
  1515.         cat pathspec For Unix users, a synonym to the type command (q.v.).
  1516.  
  1517.         cd [dir] Change to directory dir.  If Restricted, dir is checked for a
  1518.           parent directory ("cd  .."), and absolute paths ("cd  /src") not
  1519.           prefixed by the home string parameter.  Giving cd without an
  1520.           argument changes to the directory stored in the home string
  1521.           parameter.[7] ZCOMM then stores the current directory in the pwd
  1522.  
  1523.  
  1524.         __________
  1525.  
  1526.          6. Deep nesting may require a decrease in the circular buffer memory
  1527.             allocation, see Chapter 14.
  1528.  
  1529.          7. The home parameter is set to the current directory when ZCOMM is
  1530.             invoked, but may be changed with the set command.
  1531.  
  1532.  
  1533.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1534.  
  1535.  
  1536.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1537.         ZCOMM User Manual                                                   87
  1538.  
  1539.           string parameter and displays it unless the v numeric parameter is
  1540.           less than 0.
  1541.  
  1542.           EXAMPLE: cd  /tmp
  1543.  
  1544.           N.B.: When operating restricted, the home string parameter must
  1545.           point to a valid directory in order to enforce the intended
  1546.           directory path restriction.
  1547.  
  1548.           SEE ALSO: cdd and pwd commands, home and pwd string parameters
  1549.  
  1550.         cd  D:dir When a disk drive is specified with the cd command, the
  1551.           current directory on that drive is changed but ZCOMM remains logged
  1552.           in on the current drive and directory.  If Restricted, dir is
  1553.           checked for a disk drive ("cd  b:/foo") not contained in the disks
  1554.           string parameter.
  1555.  
  1556.           EXAMPLE: cd D:/tmp
  1557.  
  1558.  
  1559.         cdd D:dir Change to (log in to) disk D and then to directory dir on
  1560.           the specified disk.  If dir is not specified, the root directory is
  1561.           assumed.  ** This is a shorthand equivalent to a D: command followed
  1562.           by a chdir dir command.
  1563.  
  1564.           SEE ALSO: cd command
  1565.  
  1566.         chat Enter the term function to chat keyboard to keyboard.  Characters
  1567.           typed by either keyboard are echoed to both ends, and RETURNS echo
  1568.           as RETURN/LINEFEED.  Chat will become hostile if the other end also
  1569.           echoes characters.  (Try it sometime on a timesharing system; it's
  1570.           fun.) In Host Operation, chat exits if the caller types Ctrl-Z.
  1571.  
  1572.         close Writes the contents of the circular buffer iff a receive file is
  1573.           open, then closes the receive and transmit files.  ZCOMM complains
  1574.           if no files were open.
  1575.  
  1576.           SEE ALSO: nolog command
  1577.  
  1578.         closerx Iff a receive file is open, writes the circular buffer then
  1579.           closes the receive file.
  1580.  
  1581.           SEE ALSO: nolog command
  1582.  
  1583.         closetx Closes the transmit file, if it is open.
  1584.  
  1585.           SEE ALSO: nolog command
  1586.  
  1587.         cl Clears the screen.
  1588.  
  1589.  
  1590.  
  1591.  
  1592.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1593.  
  1594.  
  1595.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1596.         ZCOMM User Manual                                                   88
  1597.  
  1598.         cls Resets display modes and clears the screen.
  1599.  
  1600.         CONFerence Enters the term function with a 1 line window for composing
  1601.           commands and text.  Chapter 19.5 gives details.
  1602.  
  1603.         crc pathspec Print the CRC-32 and character count for the specified
  1604.           files.  The crc command verifies the identity of two (or more)
  1605.           copies of a file.  Iff the lengths and CRC-32's of two files are the
  1606.           same, the files are almost certainly identical.  Comparing files
  1607.           with the crc command is faster than transmitting a second copy for
  1608.           character by character comparisons.
  1609.  
  1610.           EXAMPLE: "crc", "crc *.c"
  1611.  
  1612.           HINT: To generate a file containing the CRC's of the files in the
  1613.           current directory:
  1614.  
  1615.                           >crc.lst
  1616.                           crc *.*
  1617.                           close
  1618.  
  1619.           After the files are copied, run the commands above (with a different
  1620.           file name), then compare the two files with DIF.EXE to detect any
  1621.           that have changed.
  1622.  
  1623.           SEE ALSO: sum, wc commands
  1624.           Source for a public domain Unix/DOS version of CRC is available.
  1625.  
  1626.         create [-modes] outfile If a receive capture file is open as the
  1627.           result of a create or t filename command, write the circular buffer
  1628.           and close it.  Then create outfile for use with the term function
  1629.           with modes.  The create command is especially useful when you don't
  1630.           want to enter the term function immediately.
  1631.  
  1632.           EXAMPLE: create -ys /tmp/cbbs.tmp[8]
  1633.  
  1634.  
  1635.           SEE ALSO: > command
  1636.  
  1637.         createx outfile Similar to the create command, but does not open
  1638.           outfile if a file with the same pathname already exists.  The
  1639.           resulting error message may be suppressed by setting the v numeric
  1640.           parameter negative.  Scripts may test for success with the r test
  1641.           condition.  The createx command may be used to manage semaphores to
  1642.  
  1643.  
  1644.         __________
  1645.  
  1646.          8. The y mode overwrites any existing file with the same name.  The s
  1647.             mode strips most control characters from the resulting disk file.
  1648.  
  1649.  
  1650.  
  1651.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1652.  
  1653.  
  1654.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1655.         ZCOMM User Manual                                                   89
  1656.  
  1657.           lock resources or work entries used by multiple instances of a
  1658.           program.  The createx command is available on Unix and OS/2 flavors.
  1659.  
  1660.           SEE ALSO: kill command
  1661.  
  1662.         del pathspec Delete the specified files.  No message is printed if one
  1663.           or more of the specified files could not be deleted.  No
  1664.           confirmation is requested for mass deletes.
  1665.  
  1666.           WARNING: As with all ZCOMM pathspec specifications, a directory name
  1667.           expands to all files in that directory.
  1668.           N.B.: Do not attempt to delete an open file on DOS, especially the
  1669.           history file.
  1670.  
  1671.           SEE ALSO: browse command
  1672.  
  1673.         demand password Scripts must often verify a caller's identity by
  1674.           asking for a password.  The ZCOMM password command allows a caller
  1675.           three chances to enter a given password.  Failure results in
  1676.           disconnection.
  1677.  
  1678.           Password is processed for character escapes and string
  1679.           substitutions.  All security restrictions on string parameters are
  1680.           enforced.
  1681.  
  1682.           If the result is empty, no password is demanded.  Otherwise the user
  1683.           is prompted to enter a string matching password in the correct case.
  1684.           Keyboard input is not echoed.
  1685.  
  1686.           Three attempts to enter password are allowed.  If the password is
  1687.           not correctly entered, DTR is pulsed to force the modem to
  1688.           disconnect the caller, and the ?  numeric parameter is set negative.
  1689.  
  1690.           EXAMPLE: demand %password Requires the caller to enter a string
  1691.           matching the contents of the password string parameter.
  1692.  
  1693.  
  1694.         dir pathspec Display pathnames matching pathspec alphabetized across
  1695.           the page.  Wildcard filename expansions are alphabetical.
  1696.  
  1697.           EXAMPLE: dir
  1698.  
  1699.  
  1700.           EXAMPLE: dir y*.c *.h
  1701.  
  1702.  
  1703.         dirr pathspec Displays the directory with length and creation date of
  1704.           each file.  dirr displays the number of files matched, number of
  1705.           blocks, number of kb in those files, and estimated transmission time
  1706.           at the current transmission speed assuming the fastest protocol
  1707.           available (ZMODEM or YMODEM-g).  XMODEM and Kermit transfers take
  1708.  
  1709.  
  1710.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1711.  
  1712.  
  1713.         Version 17.50 TurboDial 2.33            Universal Line Printer Edition
  1714.         ZCOMM User Manual                                                   90
  1715.  
  1716.           longer than the displayed estimates.  Wildcard filename expansions
  1717.           are alphabetical.
  1718.  
  1719.         dird pathspec Long Form directory, sorted by date.
  1720.  
  1721.         dirt pathspec Long Form directory, reverse sorted by date.
  1722.  
  1723.         dirl pathspec Long Form directory, sorted by file length.
  1724.  
  1725.         dirs pathspec Long Form directory, reverse sorted by file length.
  1726.  
  1727.         dirx pathspec Long Form directory, sorted by file extension.
  1728.  
  1729.         DISable{-modes} Disable mode(s) affecting the term function.  Chapter
  1730.           18 describes modes affecting the term function.
  1731.  
  1732.           EXAMPLE: dis -t Disables throttle (t mode).
  1733.  
  1734.  
  1735.         display [[no]dismode] ... Without an argument, prints the display
  1736.           modes.  Display modes preceded by NO are turned off.  With one or
  1737.           more arguments, turn on the specified display mode(s).  If an
  1738.           argument is preceded by no, the specified display mode is turned
  1739.           off.
  1740.  
  1741.           If an emulation is specified, it must be the first argument.
  1742.           display command argument changing the terminal emulation (vt100,
  1743.           lsi-adm3a, 3101, dumb) disables nlmode and overstrike.
  1744.  
  1745.           The display modes are:
  1746.  
  1747.           vt100 Emulate DEC VT-100 and VT-102 display codes and most Teletype
  1748.                 5425 codes.  VT-52 and Zenith H-19 codes are the default.
  1749.  
  1750.           lsi-adm3a Emulate Lear Siegler ADM3a and Televideo 9xx control
  1751.                 codes.
  1752.  
  1753.           dasher Emulate Data General Dasher terminals.
  1754.  
  1755.           3101  Executes IBM 3101 and TI 940 escape codes.
  1756.  
  1757.           wyse  Emulate Wyse terminals in native mode, allow switching the
  1758.                 keyboard to keyscan mode.
  1759.  
  1760.           dumb  Only null, bs, tab, cr and lf are executed, all others
  1761.                 display.  As in real life, dumb takes precedence over vt100,
  1762.                 vt52, and lsi-adm3a emulation.
  1763.  
  1764.           inhibit Inhibits the display (nothing prints).
  1765.  
  1766.                 SEE ALSO: Q mode
  1767.  
  1768.  
  1769.         (C) 1989 Omen Tech Inc                        Chapter 17 Main Commands
  1770.  
  1771.